<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <f:metadata>
        <ui:insert name="metadata"/>
    </f:metadata>
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title><ui:insert name="title">Default Title</ui:insert></title>
        <h:outputStylesheet name="css/jsfcrud.css"/>
    </h:head>

    <h:body>
        <div id="maincontent" style="width: 800px; margin-left: 50px;">
            <h:graphicImage value="/resources/images/logo.png" style="display: block; margin-left: auto; margin-right: auto;"/>
            <h:form>
                <h:commandButton rendered="#{request.remoteUser != null}" action="#{authentication.logout}" value="Logout" style="float: right;"/>
                <h:button rendered="#{request.isUserInRole('user')}" outcome="/personal-information" value="Personal Information" style="float: right;">
                    <f:param value="#{request.remoteUser}" name="u"/>
                </h:button>
            </h:form>
            <h:link outcome="/index" value="Home"/> »

            <h1>
                <ui:insert name="title">Default Title</ui:insert>
            </h1>
            <p>
                <ui:insert name="body">Default Body</ui:insert>
            </p>
        </div>
    </h:body>
</html>
